{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    <div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div>
  </div>
  <div class="panel-body">
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane fade active in">
        <div class="widget-body no-padding">
          <div class="bootstrap-table">
            <div class="fixed-table-toolbar">
              <div class="pull-right search">
                <select name="status" class="form-control" type="get-select" style="width:auto">
                  <option value="{:admin_url('admin/play/index')}">状态筛选</option>
                  <option value="{:admin_url('admin/play/index',array('status'=>1,'type'=>$type,'order'=>$order))}" {eq name="status" value="1"}selected{/eq}>
                  启用
                  </option>
                  <option value="{:admin_url('admin/play/index',array('status'=>2,'type'=>$type,'order'=>$order))}" {eq name="status" value="2"}selected{/eq}>
                  禁用
                  </option>
                </select>
              </div>
              <div class="bs-bars pull-left">
                <div id="toolbar" class="toolbar"><a target-form="ids" url="{:admin_url('admin/play/updateall')}" type="submit" class="btn btn-primary btn-disabled ajax-post disabled"><i class="fa fa-arrow-up"></i> 更新</a> <a href="javascript:;" data-name="添加播放器" data-url="{:admin_url('admin/play/add')}" class="btn btn-success btn-add btn-editone" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-plus"></i> 添加</a> <a  url="{:admin_url('admin/play/status',array('status'=>1))}" target-form="ids" class="confirm btn btn-info btn-disabled ajax-post disabled"><i class="fa fa-unlock"></i> 显示</a> <a  url="{:admin_url('admin/play/status',array('status'=>0))}" target-form="ids" class="confirm btn btn-warning btn-disabled ajax-post disabled"><i class="fa fa-lock"></i> 隐藏</a> <a  url="{:admin_url('admin/group/del')}" target-form="ids" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a> <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span> 
                </div>
              </div>
            </div>
          </div>
          <div class="fixed-table-container" style="padding-bottom: 0px;" id="contents">
            <div class="fixed-table-body">
              <form class="ids">
               <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                  <thead>
                    <tr height="45px">
                      <th align="center" class="bs-checkbox"> <input name="chkall" type="checkbox" id="chkall"></th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="play_id desc"}<a href="{:admin_url('admin/play/index',array('type'=>'id','order'=>'asc'))}" class="btn-link sort ajax-url">ID <i class="fa fa-angle-up"></i></a>
                      {else/}<a href="{:admin_url('admin/play/index',array('type'=>'id','order'=>'desc'))}" class="btn-link sort ajax-url">ID <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">名称</th>
                      <th style="text-align:center;vertical-align: middle;">标识</th>
                      <th style="text-align:center;vertical-align: middle;width:8%" >跳转</th>
                      <th style="text-align:center;vertical-align: middle;width:8%">
                      {eq name="orders" value="play_oid desc"}<a href="{:admin_url('admin/play/index',array('type'=>'oid','order'=>'asc'))}" class="btn-link sort ajax-url">排序 <i class="fa fa-angle-up"></i></a>
                      {else/}<a href="{:admin_url('admin/play/index',array('type'=>'oid','order'=>'desc'))}" class="btn-link sort ajax-url">排序 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">解析</th>
                      <th style="text-align:center;vertical-align: middle;">采集</th>
                      <th style="text-align:center;vertical-align: middle;">显示</th>
                      <th style="text-align:center;vertical-align: middle;">其他</th>
                      <th style="text-align:center;vertical-align: middle;">操作</th>
                    </tr>
                  </thead>
                  <tbody>
                  {notempty name="list"}
                  {volist name="list" id="vo"}
                  <tr>
                    <td class="bs-checkbox" style="text-align:center;vertical-align: middle;"><input name="id[]" type="checkbox" value="{$vo['play_id']}" id="checkbox"></td>
                    <td style="text-align:center;vertical-align: middle;">{$vo.play_id}</td>
                    <td style="text-align:center;vertical-align: middle;"><input  class="form-control input-sm" type="text" style="text-align:center; width:80%; margin:0 auto" name='play_title[{$vo.play_id}]' value='{$vo.play_title}'></td>
                    <td style="text-align:center;vertical-align: middle;" ><input  class="form-control input-sm" type="text" style="text-align:center; width:80%; margin:0 auto" name='play_name[{$vo.play_id}]' value='{$vo.play_name}'></td>
                    <td style="text-align:center;vertical-align: middle;"><input  class="form-control input-sm" type="text" style="text-align:center; width:80%; margin:0 auto" name='play_copyright[{$vo.play_id}]' value='{$vo.play_copyright}'></td>
                    <td style="text-align:center;vertical-align: middle;"><input  class="form-control input-sm" type="text" style="text-align:center; width:80%; margin:0 auto" name='play_oid[{$vo.play_id}]' value='{$vo.play_oid}'></td>
                    
                    <td style="text-align:center;vertical-align: middle;">{notempty name="vo.play_apiurl"}<span class="btn btn-info btn-xs btn-success">是</span>{else /}<span class="btn btn-info btn-xs btn-danger">否</span>{/notempty}</td>
                    
                    <td style="text-align:center;vertical-align: middle;"> {eq name="vo.play_status" value="1"} <a class="btn btn-info btn-xs btn-success ajax-get" url="{:admin_url('admin/play/status',array('id'=> $vo['play_id'],'status'=>0))}">允许</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-get" url="{:admin_url('admin/play/status',array('id'=> $vo['play_id'],'status'=>1))}">禁止</a>{/eq} </td>
                    
                    <td style="text-align:center;vertical-align: middle;"> {eq name="vo.play_display" value="1"} <a class="btn btn-info btn-xs btn-success ajax-get" url="{:admin_url('admin/play/diplay',array('id'=> $vo['play_id'],'status'=>0))}">显示</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-get" url="{:admin_url('admin/play/diplay',array('id'=> $vo['play_id'],'status'=>1))}">隐藏</a>{/eq} </td>
                    <td style="text-align:center;vertical-align: middle;"><a url="{:admin_url('admin/play/delplay',array('player'=>$vo['play_name'],'one'=>1))}" class="confirm btn btn-warning btn-xs play-del"> 删除数据</a></td>
                    
                    <td style="text-align:center;vertical-align: middle;"><a href="javascript:;" data-name="编辑{$vo.play_title}播放器" data-url="{:admin_url('admin/play/edit',array('id'=>$vo['play_id']))}" class="btn btn-success btn-editone btn-xs" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-pencil"></i> 编辑</a> <a url="{:admin_url('admin/play/del',array('id'=>$vo['play_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a></td>
                  </tr>
                  {/volist}   
                  {else/}
                  <tr>
                    <td style="text-align:center;vertical-align: middle;" colspan="11" >抱歉，没有找到相关内容！</td>
                  </tr>
                  {/notempty}
                  </tbody>
                  
                </table>
              </form>
            </div>
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
    </div>
  </div>
</div>
</div>
